Skip to content

Introduce LangChain4j Agentic Workflow Implementation #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ricardozanini
Copy link
Member

@ricardozanini ricardozanini commented Jul 31, 2025

Depends on langchain4j/langchain4j#3458

In this PR:

  • Add a new serverlessworkflow-fluent-agentic-langchain4j module to implement langchain4j-agentic SPI. So that we can use our workflow engine to run Agentic use cases via LC4J Workflow SPI.
  • Adjust serverlessworkflow-experimental-agentic to handle AgenticScope in the workflow context
  • Add a new CI to run solely Integration Tests since now we depend on Ollama to run Agentic use cases on this new module.

Later, I'll add more integration tests, adjust the CI to install Ollama, and the docs.

@ricardozanini ricardozanini force-pushed the agentic-langchain4j branch 2 times, most recently from 474526b to 88cf6e8 Compare August 5, 2025 19:07
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@ricardozanini ricardozanini marked this pull request as ready for review August 7, 2025 16:59
@ricardozanini
Copy link
Member Author

@fjtirado PR's now ready.

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
return object instanceof Collection value
? new AgenticModelCollection(value, cognisphere)
: Collections.emptyList();
throw new UnsupportedOperationException("Not supported yet.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ill fix this later after you merge

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@fjtirado fjtirado self-requested a review August 7, 2025 18:14
@ricardozanini ricardozanini merged commit da3ad8e into serverlessworkflow:main Aug 7, 2025
2 checks passed
@ricardozanini ricardozanini deleted the agentic-langchain4j branch August 7, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants